package com.mitei.ihm.composite;

import java.awt.GridLayout;

import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;
import javax.swing.border.Border;

import com.mitei.ihm.messages.Messages;

public class IHMOptionsPlayRes extends JPanel {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private GridLayout gridLayout = null;
	private JTextField playResXField = null;
	private JTextField playResYField = null;
	private JLabel labelResX = null;
	private JLabel labelResY = null;
	
	public IHMOptionsPlayRes() {
		this.gridLayout = new GridLayout(2, 2);
		this.setLayout(gridLayout);
		this.labelResX = new JLabel(Messages.PLAYRESX);
		this.labelResY = new JLabel(Messages.PLAYRESY);
		this.playResXField = new JTextField();
		this.playResYField = new JTextField();
		
		this.add(this.labelResX);
		this.add(this.playResXField);
		this.add(this.labelResY);
		this.add(this.playResYField);		
		
		Border etched = BorderFactory.createEtchedBorder();
		Border titled = BorderFactory.createTitledBorder(etched, Messages.OPTIONS_DE_RESOLUTION);
		setBorder(titled);
	}

	public JTextField getPlayResXField() {
		return playResXField;
	}

	public void setPlayResXField(JTextField playResXField) {
		this.playResXField = playResXField;
	}

	public JTextField getPlayResYField() {
		return playResYField;
	}

	public void setPlayResYField(JTextField playResYField) {
		this.playResYField = playResYField;
	}
}
